package com.cizzy.relation.feign;

import com.cizzy.relation.common.Result;
import com.cizzy.relation.entity.dao.UserCountDAO;
import com.cizzy.relation.entity.dto.UserDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("user-server-service")
public interface UserFeign {
    @PostMapping("/user/getUserListByIds")
    Result<List<UserDTO>> getUserListByIds(@RequestBody List<Long> ids);

    @PostMapping("/userCount/addUserCountById")
    Result<UserCountDAO> addUserCountById(@RequestParam("column") String column, @RequestParam("id") Long id, @RequestParam("count") Integer count);
}
